function T = static_resid_tt(T, y, x, params)
% function T = static_resid_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 15);

T(1) = params(23)*(y(27)*y(12))^(1-params(1));
T(2) = (y(21)*y(10))^params(1);
T(3) = y(2)^params(6);
T(4) = (1-y(12))^(1-params(6));
T(5) = params(24)*(y(1)*T(3)*T(4))^((1-params(9))/params(12))+params(2)*y(8)^(1/params(12));
T(6) = y(23)^(1-params(9));
T(7) = y(9)/y(10);
T(8) = 1-y(4)-params(8)/2*(T(7)-params(3))^2;
T(9) = y(14)^(-1);
T(10) = y(20)*y(17)*T(9);
T(11) = y(14)/params(38);
T(12) = params(7)/2*(T(11)-1)^2;
T(13) = params(8)*(T(7)-params(3));
T(14) = (y(3)+y(13))^2;
T(15) = y(13)^2;

end
